package org.example.dao;

import org.example.po.News;

import java.util.List;

public interface NewsDao {
    //定义一些方法接口
    public int addNews(News news) throws Exception;

    public int deleteNewsByID(int Id) throws Exception;

    public News findNewsById(int Id) throws Exception;

    public List<News> findAllNews() throws Exception;
}
